let someValue: any = 'this is a string'
// let strLength: number = (<string>someValue).length // 断言其为字符串类型
let strLength: number = (someValue as string).length //两种语法是一样的


console.log(strLength)